package example.string;

import java.util.Locale;

/**
 * Created by lenovo on 2016/11/4 0004.
 * format()格式化字符串
 */
public class Format {
    public static void main(String[] args){
        double e = Math.E;
        System.out.format("%f%n",e);
        System.out.format(Locale.GERMAN,"%-10.4f%n%n",e);//制定本地为德国
    }
}
